package com.dw.entity;

import com.dw.dao.EmployeeDao;
import com.dw.dao.MessageDao;
import com.dw.dao.ProjectDao;

public class Atmessage {
	private String messageid;
	private Message m;
	private String projectid;
	private Project p;
	private String employeeid;
	private Employee e;
	
	public String getMessageid() {
		return messageid;
	}
	public void setMessageid(String messageid) {
		this.messageid = messageid;
		setM(new MessageDao().findByID(messageid));
	}
	public String getProjectid() {
		return projectid;
	}
	public void setProjectid(String projectid) {
		this.projectid = projectid;
		setP(new ProjectDao().findByID(projectid));
	}
	public String getEmployeeid() {
		return employeeid;
	}
	public void setEmployeeid(String employeeid) {
		this.employeeid = employeeid;
		setE(new EmployeeDao().findByID(employeeid));
	}
	public Message getM() {
		return m;
	}
	private void setM(Message m) {
		this.m = m;
	}
	public Project getP() {
		return p;
	}
	private void setP(Project p) {
		this.p = p;
	}
	public Employee getE() {
		return e;
	}
	private void setE(Employee e) {
		this.e = e;
	}
	
	
	
}
